import request from '@/utils/request'

// 获取车辆管理分页
export function vehicleManagePage(data) {
	return request({
		url: '/wit/vehiclemanage/page',
		method: 'get',
		data: data
	})
}
// 提交车辆管理表单 edit为true时为编辑，默认为新增
export function vehicleManageSubmitForm(data, add = true) {
	return request({
		url: '/wit/vehiclemanage/' + (add ? 'add' : 'edit'),
		method: 'post',
		data: data
	})
}
// 删除车辆管理
export function vehicleManageDelete(data) {
	return request({
		url: '/wit/vehiclemanage/delete',
		method: 'post',
		data: data
	})
}
//  获取车辆管理详情
export function vehicleManageDetail(data) {
    return request({
        url: '/wit/vehiclemanage/detail',
        method: 'get',
        data: data
    })
}
